home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14085 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: taco.cc.ncsu.edu!news
  2. From: dksmith@eos.ncsu.edu
  3. Newsgroups: comp.lang.c++
  4. Subject: Windows Dialog Programming Problem
  5. Date: 28 Mar 1996 16:16:27 GMT
  6. Organization: North Carolina State University
  7. Message-ID: <4jee0r$71t@taco.cc.ncsu.edu>
  8. NNTP-Posting-Host: cc04du.unity.ncsu.edu
  9.  
  10. Ok. Here is my problem:
  11.  
  12. I created a dialog in Borland's Resource Workshop. I think tried to call the
  13. dialog in my C++ code using the succession of API calls MakeProcInstance,
  14. DialogBox, and FreeProcInstance. I also coded the appropriate Dialog Procedure 
  15. for the dialog. My problem is that the buttons and text on the dialog are drawn
  16. on the desktop and that the backgrond of the dialog window is not drawn or
  17. is completely transparent. The dialog buttons themselves retain all of their
  18. correct functionality but seem to float over the desktop background as it
  19. existed before I called the dialog box. It is as if the buttons windows in the
  20. dialog were drawn with a parent window of NULL rather than the dialog window
  21. handle. This should not happen since I drew the dialog in Resource Workshop and 
  22. called it with DialogBox, sending the dialog name string from the resource file
  23. with the dialog definition. 
  24.  
  25. Has anyone ever had a similar problem and/or know what I can do to eliminate 
  26. the problem?
  27.  
  28. If so please email responses to dksmith@eos.ncsu.edu
  29.  
  30. Thank you in advance.
  31.  
  32.  
  33. -David Smith
  34.  
  35.